package com.njtech.pet.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lxj
 * Date:2020-03-09 10:54
 * Description:订单类
 */
public class Bill implements Serializable {
    public Integer id;
    public User user;
    public Item item;
    public Date createDate;
    public String state;
    public String type;
    public Person buyer;
    public Person insured;
    public Pet pet;
    public Date useDate;
    public Date expireDate;
    public Date updateDate;
    public Double price;
    public Integer credit;
    public String buyWay;
    public String proof;
    public String remark;

    public Bill() {
    }

    public Bill(Integer id, User user, Item item, Date createDate, String state, String type, Person buyer, Person insured, Pet pet, Date useDate, Date expireDate, Date updateDate, Double price, Integer credit, String buyWay, String proof, String remark) {
        this.id = id;
        this.user = user;
        this.item = item;
        this.createDate = createDate;
        this.state = state;
        this.type = type;
        this.buyer = buyer;
        this.insured = insured;
        this.pet = pet;
        this.useDate = useDate;
        this.expireDate = expireDate;
        this.updateDate = updateDate;
        this.price = price;
        this.credit = credit;
        this.buyWay = buyWay;
        this.proof = proof;
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Bill{" +
                "id=" + id +
                ", user=" + user +
                ", item=" + item +
                ", createDate=" + createDate +
                ", state='" + state + '\'' +
                ", type='" + type + '\'' +
                ", buyer=" + buyer +
                ", insured=" + insured +
                ", pet=" + pet +
                ", useDate=" + useDate +
                ", expireDate=" + expireDate +
                ", updateDate=" + updateDate +
                ", price=" + price +
                ", credit=" + credit +
                ", buyWay='" + buyWay + '\'' +
                ", proof='" + proof + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    public Date getUseDate() {
        return useDate;
    }

    public void setUseDate(Date useDate) {
        this.useDate = useDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Person getBuyer() {
        return buyer;
    }

    public void setBuyer(Person buyer) {
        this.buyer = buyer;
    }

    public Person getInsured() {
        return insured;
    }

    public void setInsured(Person insured) {
        this.insured = insured;
    }

    public Pet getPet() {
        return pet;
    }

    public void setPet(Pet pet) {
        this.pet = pet;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    public String getBuyWay() {
        return buyWay;
    }

    public void setBuyWay(String buyWay) {
        this.buyWay = buyWay;
    }

    public String getProof() {
        return proof;
    }

    public void setProof(String proof) {
        this.proof = proof;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
